<?php 
// Set the content type to Javascript
header("Content-type: text/javascript");

// Disallow caching
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");

$array = array(
   "getcityurl" => OC_Helper::linkToRoute("city_listc"),
   "getprovinceurl" => OC_Helper::linkToRoute("city_listp"),
   "loadmore_url" => OC_Helper::linkToRoute("jobpos_loadmore"),
   "resumes_toplist_url" => OC_Helper::linkToRoute("resumes_toplist"),
   "choosejobsheet" => OC_Helper::linkToRoute("jobpos_choosejobsheet"),
   "canceljobsheet" => OC_Helper::linkToRoute("jobpos_canceljobsheet"),
   "getmatchrule" => OC_Helper::linkToRoute("jobpos_getmatchrule"),
   "getonlinetest" => OC_Helper::linkToRoute("jobpos_getonlinetest"),
   "getjobdemands" => OC_Helper::linkToRoute("jobpos_getjobdemands"),
   "getpersontest" => OC_Helper::linkToRoute("jobpos_getpersontest"),
   "del_ques_url" => OC_Helper::linkToRoute("jobpos_deletequestion"),
   "del_sheet_url" => OC_Helper::linkToRoute("jobpos_deletesheet"),
   "redirect_url" => OC_Helper::linkToRoute('company_login'),
   "jobposindex_url" => OC_Helper::linkToRoute('jobpos_index'),
   "offsitesearch_url" => OC_Helper::linkToRoute('resumes_offsitesearch'),
   "setautoaction" => OC_Helper::linkToRoute('company_setautoaction'),
   "synchronousinfo_url" => OC_Helper::linkToRoute("company_synchronousinfo")
);

// Echo it
foreach ($array as  $setting => $value) {
   echo("var ". $setting ."=\"".$value."\";\n");
}
